From 5e68ddd5317393db45175c398e9f4f49584bae5f Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sun, 18 Mar 2007 11:40:13 +0000 Subject: [PATCH] (open-tls-stream): In handshake-waiting loop, don't wait more if there is output available to process. --- lisp/net/tls.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/net/tls.el b/lisp/net/tls.el index 3b6f0ac44be..9de74ca19d4 100644 --- a/lisp/net/tls.el +++ b/lisp/net/tls.el @@ -146,8 +146,8 @@ Fourth arg PORT is an integer specifying a port to connect to." (set-buffer buffer) ;; XXX "blue moon" nntp.el bug (goto-char (point-min)) (not (setq done (re-search-forward tls-success nil t))))) - (accept-process-output process 1) - (sit-for 1)) + (unless (accept-process-output process 1) + (sit-for 1))) (message "Opening TLS connection with `%s'...%s" cmd (if done "done" "failed")) (if done -- 2.30.2